"""
URL configuration for Django_admin project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""


from django.urls import path
from .views import user_login, register, admin_home, logout_view, dashboard, user_manage, content_manage, system_config, \
    data_statistics, log_manage, message_center, help_document,add_user,add_content,content_list,dashboard_data

urlpatterns = [
 
    path('', user_login, name='user_login'),
     path('register/',register,name='user_register'),
    path('register/',register,name='register'),
    path('admin_home/', admin_home, name='admin_home'),
    path('admin_home/home/',admin_home,name="admin_home"),
    path('logout/',logout_view, name='logout'),
    # 仪表盘
    ##请求路由
    path('api/dashboard-data/',dashboard_data,name='dashboard-data'),
    path('dashboard/',dashboard,name='dashboard'),
    path('user_manage/', user_manage, name='user_manage'),

    path('add_user/', add_user, name='add_user'),
    path('add_content/', add_content, name='add_content'),
    path('content_list/',content_list,name="content_list"),
    path('content_manage/', content_manage, name='content_manage'),

    path('system_config/', system_config, name='system_config'),
    path('data_statistics/', data_statistics, name='data_statistics'),
    path('log_manage/', log_manage, name='log_manage'),
    path('message_center/', message_center, name='message_center'),
    path('help_document/', help_document, name='help_document')

    ]